{include file="library/header.tpl"}

<!-- {if $mm_show eq "loginform"} -->
<body style="overflow-x:hidden; overflow-y:hidden;">
  <div class="sign-in">
  <div class="signin-box">
  
 

  <form id="mm_loginform" method="post" action="">
  <!-- {if $regOk} -->
<table border="0" cellspacing="0" cellpadding="2" align="center" width="312"  height="15" bgcolor="#FFFFFF">
  <tr>
    <td align="center"><font color="red">注册成功，请登录</font></td>
  </tr>
</table>
<!-- {/if} -->
    <table border="0" cellspacing="0" cellpadding="0" align="center" width="315"  height="199" background="{$TemplateDir}images/login_center.jpg">
  <tr>
    <td height="70" colspan="2" align="center"><strong>{$lang.login_reg}</strong></td>
  </tr>
  <tr>
    <td height="25" align="right">{$lang.username}</td>
    <td><input type="text" id="username" name="username" /></td>
  </tr>
  <tr>
    <td height="25" align="right">{$lang.password}</td>
    <td><input type="password" id="Passwd" name="Passwd" /></td>
  </tr>
  <tr>
    <td height="25" align="right">{$lang.department}</td>
    <td>
      <select id="department" name="department">
      <!--{foreach from=$departments item=depart}-->
        <option value="{$depart.id}">{$depart.d_name}</option>
      <!--{/foreach}-->
      </select> 
      <!--&nbsp;&nbsp; <a href="admin/" style="text-decoration:none;font-size:12px; font-family:Arial, Helvetica, sans-serif; color:#30F; ">管理员登录</a> -->
    </td>
  </tr>
  <tr>
    <td align="right">
    <input type="hidden" name="act" value="login" />
    <input type="submit" class="mm-button mm-button-submit" name="signIn" id="signIn" value="{$lang.login}"/>
    
    </td>
    <td align="left">
    &nbsp;&nbsp;
      <span id="mm-reg-button" class="mm-button mm-button-submit mm-reg-button"><a href="./?act=reg">{$lang.reg}</a></span></td>
  </tr>
</table>
<!-- {if $loginError} -->
<table border="0" cellspacing="0" cellpadding="2" align="center" width="312"  height="15" bgcolor="#FFFFFF">
  <tr>
    <td align="center"><font color="red">登录失败, 检查你的账号</font></td>
  </tr>
</table>
<!-- {/if} -->
  </form>
  
   
  
  </div>
  </div>  
</body>
<!-- {/if} -->

<!-- {if $mm_show eq "regform"} -->
<body style="background:#FFF; margin-top:50px;">
<div class="mm-regform">
<script type="text/javascript">
$(document).ready(function(){
  $("#allinfo").click(function(){
    $("#other_info").slideToggle();
  });
});

</script>
<form action="" method="post" name="regform" id="regform">
<table border="0" cellspacing="1" cellpadding="0" width="600" align="center" bgcolor="#CCCCCC">
  <tr bgcolor="#FFFFFF">
    <td align="center"><table border="0" cellspacing="5" cellpadding="0" align="center">
  <tr>
    <td colspan="2" align="center">{$lang.reg}</td>
  </tr>
  <tr>
    <td align="right">{$lang.e_name}</td>
    <td align="left"><input name="e_name" type="text" size="15" /></td>
  </tr>
  
  <tr>
    <td align="right">{$lang.e_pass}</td>
    <td align="left"><input name="e_pass" type="password" size="15" /></td>
  </tr>
  <tr>
    <td align="right">{$lang.e_repass}</td>
    <td align="left"><input name="e_repass" type="password" size="15" /></td>
  </tr>
  <tr align="left">
    <td align="right">{$lang.e_sex}</td>
    <td>
      <input name="e_sex" type="radio" value="1" />{$lang.sex_man}
      <input name="e_sex" type="radio" value="0" checked="checked" />{$lang.sex_female}
    </td>
  </tr>
  <tr>
    <td align="right">{$lang.e_depart}</td>
    <td align="left">
      <select id="e_depart" name="e_depart">
      <!--{foreach from=$departments item=depart}-->
        <option value="{$depart.id}">{$depart.d_name}</option>
      <!--{/foreach}-->
      </select>    
       
    </td>
  </tr>
  <tr>
    <td align="right" colspan="2"><a href="#" id="allinfo">全部信息</a></td>
  </tr>
</table></td>
  </tr>
  <tr bgcolor="#FFFFFF" id="other_info" style="display:none;">
    <td><table border="0" cellspacing="5" cellpadding="0" align="center">  
  
  <tr>
    <td align="right">{$lang.e_college}</td>
    <td><input name="e_college" type="text" /></td>
  </tr>
  <tr>
    <td align="right">{$lang.e_card_id}</td>
    <td><input name="e_card_id" type="text" /></td>
  </tr>
  <tr>
    <td align="right">{$lang.e_home_address}</td>
    <td><input name="e_home_address" type="text" /></td>
  </tr>
  <tr>
    <td align="right">{$lang.e_address}</td>
    <td><input name="e_address" type="text" /></td>
  </tr>
  <tr>
    <td align="right">{$lang.e_phone}</td>
    <td><input name="e_phone" type="text" size="15" /></td>
  </tr>
  <tr>
    <td align="right">{$lang.e_emerg_contact}</td>
    <td><input name="e_emerg_contact" type="text" /></td>
  </tr>
  <tr>
    <td align="right">{$lang.e_emerg_phone}</td>
    <td><input name="e_emerg_phone" type="text" size="15" /></td>
  </tr>
</table></td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td><table border="0" cellspacing="5" cellpadding="0" align="center">  
  <tr>
    <td align="center" colspan="2">
    <input type="hidden" name="act" value="signin" />
    <input type="submit" class="mm-button mm-button-submit" name="reg" id="reg" value="{$lang.reg}"/> &nbsp;&nbsp;
    <input type="reset" class="mm-button mm-button-submit" value="{$lang.reset}" />
    </td>
</table></td>
  </tr>
  
</table>








</form>
</div>
</body>
<!-- {/if} -->

{include file="library/footer.tpl"}